home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / ArrowBP.h.z / ArrowBP.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  102 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: ArrowBP.h /main/13 1995/07/14 10:10:05 drk $ */
  12. /*
  13. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  14. #ifndef _XmArrowButtonP_h
  15. #define _XmArrowButtonP_h
  16.  
  17. #include <Xm/ArrowB.h>
  18. #include <Xm/PrimitiveP.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. /*  Arrow class structure  */
  25.  
  26. typedef struct _XmArrowButtonClassPart
  27. {
  28.   XtPointer extension;
  29. #ifdef _SGIMOTIF
  30.     XtPointer _SG_vendorExtension;
  31. #endif    
  32. } XmArrowButtonClassPart;
  33.  
  34.  
  35. /*  Full class record declaration for Arrow class  */
  36.  
  37. typedef struct _XmArrowButtonClassRec
  38. {
  39.   CoreClassPart           core_class;
  40.   XmPrimitiveClassPart     primitive_class;
  41.   XmArrowButtonClassPart arrowbutton_class;
  42. } XmArrowButtonClassRec;
  43.  
  44. externalref XmArrowButtonClassRec xmArrowButtonClassRec;
  45.  
  46.  
  47. /*  The ArrowButton instance record  */
  48.  
  49. typedef struct _XmArrowButtonPart
  50. {
  51.   XtCallbackList activate_callback;
  52.   XtCallbackList arm_callback;
  53.   XtCallbackList disarm_callback;
  54.   unsigned char  direction;    /* The direction the arrow is pointing. */
  55.  
  56.   Boolean      selected;
  57.   short          top_count;
  58.   short          cent_count;
  59.   short          bot_count;
  60.   XRectangle    *top;
  61.   XRectangle    *cent;
  62.   XRectangle    *bot;
  63.  
  64.   GC         arrow_GC;
  65.   XtIntervalId   timer;    
  66.   unsigned char  multiClick;    /* KEEP/DISCARD resource */
  67.   int            click_count;
  68.   Time         armTimeStamp;
  69.   GC         insensitive_GC;
  70. #ifdef _SGIMOTIF
  71. /* this has to go here (not at the end), to maintain binary compat. with 1.2 
  72.  * (detail_shadow_thickness is new in 2.1) 
  73.  * */
  74.   XtPointer    _SG_vendorExtension; 
  75. #endif
  76.   Dimension detail_shadow_thickness ;
  77. } XmArrowButtonPart;
  78.  
  79.  
  80. /*  Full instance record declaration  */
  81.  
  82. typedef struct _XmArrowButtonRec
  83. {
  84.   CorePart           core;
  85.   XmPrimitivePart    primitive;
  86.   XmArrowButtonPart    arrowbutton;
  87. } XmArrowButtonRec;
  88.  
  89.  
  90. /********    Private Function Declarations    ********/
  91.  
  92.  
  93. /********    End Private Function Declarations    ********/
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  98. #endif
  99.  
  100. #endif /* _XmArrowButtonP_h */
  101. /* DON'T ADD ANYTHING AFTER THIS #endif */
  102.